//
//  OrderAddressCell.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/29.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "OrderAddressCell.h"
#import "OrderListModel.h"
#import "IdOrMteDetailModel.h"
@interface OrderAddressCell()
@property (weak, nonatomic) IBOutlet UILabel *nameAndPhoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressDetailLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end
@implementation OrderAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setupADdressData:(id)data{
    
    OrderInfoModel * model =  data;
    self.nameAndPhoneLabel.text = [model.address_user stringByAppendingString:@"  "];
    self.nameAndPhoneLabel.text = [self.nameAndPhoneLabel.text stringByAppendingString:model.address_tel];
    self.addressDetailLabel.text = model.address;
}
- (void)setupSendAddressInfo:(id)data withTitle:(NSString *)title{
    IdOrMteInfoModel * model =  data;
    self.nameAndPhoneLabel.text = [model.address_user stringByAppendingString:@"  "];
    self.nameAndPhoneLabel.text = [self.nameAndPhoneLabel.text stringByAppendingString:model.address_tel];
    self.addressDetailLabel.text = model.address;
    self.titleLabel.text = title;
}
- (void)setupBackAddressInfo:(id)data withTitle:(NSString *)title{
    
    IdOrMteInfoModel * model =  data;
    self.nameAndPhoneLabel.text = [model.jj_address_user stringByAppendingString:@"  "];
    self.nameAndPhoneLabel.text = [self.nameAndPhoneLabel.text stringByAppendingString:model.jj_address_tel];
    self.addressDetailLabel.text = model.jj_address;
     self.titleLabel.text = title;
}
@end
